
const formatObj = {
    1: '启用',
    0: '禁止'
}

export const modelSetting = [
    {
        title: '策略名称',
        dataIndex: 'name',
    },
    {
        title: '测试模式',
        dataIndex: 'usingtest',
        slots: {customRender: 'usingtest'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
    {
        title: '启用数字证书',
        dataIndex: 'usingcertificate',
        slots: {customRender: 'usingcertificate'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
    {
        title: '启用网络控制',
        dataIndex: 'usingnetworkcontrol',
        slots: {customRender: 'usingnetworkcontrol'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
    {
        title: '启用进程保护',
        dataIndex: 'usingprocessprotection',
        slots: {customRender: 'usingprocessprotection'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
    {
        title: '启用文件管控',
        dataIndex: 'usingdocumentcontrol',
        slots: {customRender: 'usingdocumentcontrol'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
    {
        title: '启用白名单',
        dataIndex: 'usingwhitelist',
        slots: {customRender: 'usingwhitelist'},
        slotsType: 'format',
        slotsFunc: (val) => formatObj[val]
    },
]
